import request from "@/api/request";


// 发表评论(灵感)
export function postRating(data) {
    return request({
        headers: {
            'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'
        },
        method: "POST",
        url: "api/h/inspirations/comment/" ,
        data
    });
}

// 获取评论(灵感)
export function getRating(id) {
    return request({
        method: "GET",
        url: "api/h/inspirations/comment/" + id ,
    });
}
// 发表评论(风格)
export function poststyleRating(data) {
    return request({
        headers: {
            'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'
        },
        method: "POST",
        url: "api/h/styles/comment/" ,
        data
    });
}

// 获取评论(风格)
export function getstyleRating(id) {
    return request({
        method: "GET",
        url: "api/h/styles/comment/" + id ,
    });
}
